package com.gzy.cbrsystem.core;

import com.gzy.cbrsystem.core.interfaces.SimilarityCalculation;
import com.gzy.cbrsystem.core.interfaces.VectorSimilarity;

public class BooleanSimilarity implements SimilarityCalculation{

	public double CalculateSimilarity(Object a, Object b) {
		Boolean ba=(Boolean)a;
		Boolean bb=(Boolean)b;
		double re=0;
		if(ba==null) ba=false;
		if(bb==null) bb=false;
		return ba.equals(bb)?1:0;
	}

	public void setConfig(Object object) {
		//do nothing!
		
	}

	public Object getConfig() {
		// TODO Auto-generated method stub
		return null;
	}

	public VectorSimilarity getInsomniaSim() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setInsomniaSim(VectorSimilarity insomniaSim) {
		// TODO Auto-generated method stub
		
	}

}
